package string;

public class StartsWithDemo {
    public static void main(String[] args) {
        String a="Thinking  in Java  ";
        a=a.trim();
        System.out.println(a);
        a=a.toUpperCase();
        System.out.println(a);
        a=a.toLowerCase();
        System.out.println(a);
        boolean Stare=a.startsWith("T");
        System.out.println(Stare);
        boolean end=a.endsWith("ava");
        System.out.println(end);
    }
}
